//
//  ZHLEEUser.swift
//  ZHLEE_Blog_Swift_Pro
//
//  Created by ZHLEEBlander on 15/10/17.
//  Copyright © 2015年 ZHLEEBlander. All rights reserved.
//

import UIKit

class ZHLEEUser: NSObject {

    //头像
    var profile_image_url : String?

    /// 名称
    var name: String?
    
    /// 会员类型->大于2的就是vip
    var mbtype: Int = 0{
    
        didSet{
        
            isVip = (mbtype > 2)
        }
    }
    /// 会员等级
    var mbrank: Int = 0
    /// 是否是会员
    var isVip: Bool = false
    
    init(dictionary:[String: AnyObject]){
    
        super.init()
        setValuesForKeysWithDictionary(dictionary)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {}
}
